package 成员内部类;

public class out {
    private int see=10;
    private static String test="傻逼";
    public int getSee() {
        return see;
    }

    public void setSee(int see) {
        this.see = see;
    }

    public class in{
        private int age;
       // private static String name;16之前不可用成员内部类静态变量
        public void show(){
            //能访问外部类的静态和实例
            System.out.println(see);//10
            System.out.println(test);//傻逼
        }
        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }
}
